package com.marvels.product.param.dao;

import java.util.List;
import java.util.Map;

import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptConsultingFeeDTO;
import com.marvels.product.param.dto.McptProduct;

public interface McptConsultingFeeMapper {

    int insert(McptConsultingFeeDTO record);


    McptConsultingFeeDTO selectByPrimaryKey(Long consultingFeeId);


    int updateByPrimaryKey(McptConsultingFeeDTO record);
    
    /**
     * 获取列表
     * @param param
     * @return
     */
	List<McptConsultingFeeDTO> getListByParam(Map<String, Object> param);

	int updateStatus(McptConsultingFeeDTO dto);
	
	/**查询咨询费
	 * @author 娄凯琦
	 * @date 2018年5月9日  
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McptConsultingFeeDTO selectConsultingFeeByConsultingFeeCode(McptProduct dto) throws MarvelsBusinessException;

	
	
	/**
	 * 根据产品信息查询咨询费
	 * @param product
	 * @return
	 */
	public McptConsultingFeeDTO selectByProductInfo(McptProduct product);
	/**
	 * 根据主键删除记录
	 * @param record
	 */
	public int deleteByPrimaryKey(McptConsultingFeeDTO record);

}